#!/bin/bash

echo '输入 1 到 4 之间的数字:
1,git提交
2,maven clean,package一条龙
3,maven clean
4,启动vuepress
'
echo '你输入的数字为:'
read aNum
case $aNum in
    1)  echo 'git提交ing'
		echo "git add ."
		git add .

		time=$(date "+%Y年%m月%d日 %H:%M:%S")
		echo "git commit -m '$time'"
		git commit -m "$time"

		echo "git pull"
		git pull 

		echo "git push"
		git push  
    ;;
    2)  echo 'maven一条龙'
	echo "mvn clean"
	mvn clean
	echo " mvn package -DskipTests"
	 mvn package -DskipTests
    ;;
    3)  echo 'mavening'
	echo "mvn clean"
	mvn clean
    ;;
    4)  echo 'vuepress启动ing'
	yarn docs:dev
    ;;
	5)  echo 'demoFun()'
 	;;
    *)  echo '你没有输入 1 到 4 之间的数字'
    ;;
	
 esac

